package com.example.stock.comm;


public enum TranEnum {
    T0,T1;

    public static TranEnum getByNameExt(String name) {
        for (TranEnum value : TranEnum.values()) {
            if (value.name().equalsIgnoreCase(name)) {
                return value;
            }
        }
        throw new RuntimeException("不包含该枚举");
    }
}
